package org.itboys.product.entity;

import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;
import org.itboys.mongodb.entity.BaseLongIdEntity;

import java.util.List;

/**
 * 搜索关键词主动关联表
 * @author ChenJh
 */
@Entity(value = "SearchTag", noClassnameStored = true)
public class SearchTag extends BaseLongIdEntity {

    @Indexed(unique = true, dropDups = false)
    private String tag;

    private List<Long> productIds;

    private List<Long> categoryIds;

    private List<Long> brandIds;


    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public List<Long> getProductIds() {
        return productIds;
    }

    public void setProductIds(List<Long> productIds) {
        this.productIds = productIds;
    }

    public List<Long> getCategoryIds() {
        return categoryIds;
    }

    public void setCategoryIds(List<Long> categoryIds) {
        this.categoryIds = categoryIds;
    }

    public List<Long> getBrandIds() {
        return brandIds;
    }

    public void setBrandIds(List<Long> brandIds) {
        this.brandIds = brandIds;
    }
}
